import { defineComponent } from "vue";
import { labelGroupProps } from "./types";
import Label from "../Label";
export default defineComponent({
  name: "label-group",
  props: labelGroupProps,
  setup(props) {
    return () => {
      if (props.data.length == 0) return null;
      return (
        <div class="flex items-center">
          {props.data.map((e) => (
            <Label {...e} class={["mr-11", props.childClass]} />
          ))}
        </div>
      );
    };
  },
});
